package com.shuiyu.cloud.entities;

import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author rjw
 * <p>Description:  公共结果通知 </p>
 * @ClassName CommonResult
 * @time 2021/7/13 16:58
 */
@Accessors(chain = true)
@Data
@Getter
@Setter
public class CommonResult<T> implements Serializable {

    private Integer code;
    private String message;
    private    T   data;


    public CommonResult() {
    }

    public CommonResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public CommonResult(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }







}
